package cn.pping.system.mapper;

import cn.pping.system.domain.Role;
import cn.pping.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pping
 * @since 2022-08-02
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    void saveRoleMenu(@Param("rid") Long id, @Param("xxyyy") List<Long> menus);

    void saveRolePermission(@Param("rid") Long id, @Param("permissions")List<Long> permissions);

    void removeEmployeeRole(Long rid);

    void removeRoleMenu(Long rid);

    void removeRolePermission(Long rid);
}
